import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 试乘试驾车转常规申请


// 列表查询 /ttVsTestDirveChange/listQuery
export const queryList = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveChange/listQuery`, params)


// 详情  /ttVsTestDirveChange/selectOne
export const queryById = (id) => axios.get(`${SERVER.RETAIL}/ttVsTestDirveChange/selectOne?id=${id}`)

// 保存 提交 /ttVsTestDirve/saveOne
export const saveData = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveChange/saveOne`, params)

// 通过驳回 /ttVsTestDirve/testDriveReview
export const reviewData = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveChange/testDriveReview`, params)

// 批量删除  /ttVsTestDirve/delList
export const delById = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveChange/delList`, params)

//  查车 /vehicle/listTestDriverInfoChange
export const VINInfoChange = (params) => axios.post(`${SERVER.RETAIL}/vehicle/listTestDriverInfoChange`, params)

// 审核日志  /ttVsTestDirveChange/queryAuditLog
export const queryAuditLog = (id) => axios.get(`${SERVER.RETAIL}/ttVsTestDirveChange/queryAuditLog?id=${id}`)
